hackerrank diagonal difference

join shbcf.ru